  <event_actions>
    <remote_trigger name="test_logger" uuid="61596e90-29bc-012a-5015-001124cc2128">
            <analysis_event>
                <begin>
                    <commands>
                        <command>export LOGGER_FILE=<%= @logger_file %></command>
                        <command>echo "&lt;?xml version='1.0'?&gt;&lt;events&gt;" &gt; $LOGGER_FILE</command>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </begin>
                <end>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                        <command>echo "&lt;/events&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </end>
                <paused>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </paused>
            </analysis_event>
            <attack_event>
                <begin>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </begin>
                <end>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </end>
            </attack_event>
            <variant_event>
                <begin>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </begin>
                <end>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </end>
            </variant_event>
            <instrument_event>
                <instrument>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </instrument>
            </instrument_event>
            <restart_event>
                <start>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </start>
                <stop>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </stop>
                <begin>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </begin>
                <end>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </end>
            </restart_event>
            <isolation_event>
                <begin>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </begin>
                <end>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </end>
            </isolation_event>
            <throttle_event>
                <begin>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </begin>
                <end>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </end>
                <expired>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;message&gt;$event.Message&lt;/message&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                    <timeout>1000</timeout>
                </expired>
            </throttle_event>
            <fault_event>
                <fault_found>
                    <commands>
                        <command>echo "&lt;event&gt;&lt;class&gt;$event.EventClass.Label&lt;/class&gt;&lt;vector&gt;$event.Vector&lt;/vector&gt;&lt;detection&gt;$event.FaultDetection.Label&lt;/detection&gt;&lt;isolation&gt;$event.FaultIsolation.Label&lt;/isolation&gt;&lt;/event&gt;" &gt;&gt; $LOGGER_FILE</command>
                    </commands>
                </fault_found>
            </fault_event>
            <error_behavior>reconnect</error_behavior>
            <ssh_channel name="test">
                <password><%= @testuser_password %></password>
                <tcp_port>22</tcp_port>
                <username><%= @testuser_username %></username>
                <commands/>
                <prompt>\$</prompt>
                <capture>false</capture>
                <host ref="tester"/>
            </ssh_channel>
        </remote_trigger>
  </event_actions>